for /F %%i in ('git branch --show-current') do ( set curr_branch=%%i)



echo "curr_branch:%curr_branch%"



echo "merge to %1"



git pull

git switch %1

git pull

git merge %curr_branch%

git push

git switch %curr_branch%